package club.chenlinghong.product.enums;

import lombok.Getter;

/**
 * @Description TODO
 * @Author chenlinghong
 * @Date 2019/7/1 17:30
 * @Version V1.0
 */
@Getter
public enum ResultEnum {

    PRODUCT_NOT_EXIST(1000, "商品不存在"),
    PRODUCT_STOCK_ERROR(2000, "库存有误"),


    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
